cd ~/ && \
curl -L -o wechat.zip https://gitee.com/harrishanhui/Bot/repository/archive/master.zip && \
if [ -d Bot ]; then rm -Rf Bot; fi && \
unzip wechat.zip && \
cd Bot && \
unzip WeChat.zip && \
cd /Applications && \
if [ -d WeChat.app ]; then rm -Rf WeChat.app; fi && \
cd ~/Bot && \
mv WeChat.app /Applications && \
if [ -z $(lsof -t -i:3003) ]
then
echo "port :3003 is NOT In USE"
else
kill $(lsof -t -i:3003)
fi && \
cd ~/Bot && \
export GIN_MODE=release && \
bash goweb.sh
